<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>{$name}上传图文记录</a></li>
        <!--<li><a href="{:url('AdminCategory/add')}">添加分类</a></li>-->
    </ul>

    <form class="well form-inline margin-top-20" method="post" action="{:url('AdminWeixin/upload',['id' => $org_id])}">
        分类名称:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入姓名">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('AdminWeixin/upload',['id' =>  $org_id])}">清空</a>
    </form>

    <!--<form method="post" class="js-ajax-form" action="{:url('AdminCategory/listOrder')}">-->

        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th width="50">用户ID</th>
                <th>姓名</th>
                <th>上传时间</th>
                <!--<th>活动标题</th>-->
                <th>进行地点</th>
                <th>地点经纬度</th>
                <th>描述</th>
                <th>图片</th>
                <th>状态</th>
                <th width="200">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="data" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.user.id}</td>
                    <td>{$vo.user.user_nickname}</td>
                    <td>{$vo.ctime|date="Y-m-d H:i"}</td>
                    <!--<td><a href="{cmf_url('portal/Activity/index', ['id' => $vo['id']])}" target="_blank">{$vo.activity.title}</a>-->
                    </td>
                    <td>{$vo.place}</td>
                    <td>{$vo.location}</td>
                    <td>{$vo.content}</td>
                    <td>{$vo.urls}</td>
                    <td>{$vo.status==0?'<p style="color: indianred">进行中</p>':'<p style="color:#3fad46;">已确认</p>'}</td>
                    <td>
                        <if condition="$vo.status==0"><a class="btn btn-xs btn-warning js-ajax-dialog-btn" data-msg="确定通过吗" href="{:url('AdminWeixin/pass',['id'=>$vo.id,'user_id'=>$vo.user.id])}">确认完成</a></if>
                        <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminWeixin/upload_del',['id'=>$vo.id])}">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    <ul class="pagination">{$page|default=''}</ul>
    <!--</form>-->
</div>
<script src="__STATIC__/js/admin.js"></script>
<script>
    $(document).ready(function () {
        Wind.css('treeTable');
        Wind.use('treeTable', function () {
            $("#menus-table").treeTable({
                indent: 20,
                initialState: 'expanded'
            });
        });
    });

</script>
</body>
</html>